﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

namespace PowerHub.MES.Entities.ProductPlanning;

/// <summary>
/// 产品BOM
/// </summary>
[Table("ProductPlanning_ProductBillDetial")]
public partial class ProductPlanning_ProductBillDetial : BaseEntity
{
    /// <summary>
    /// 原料id
    /// </summary>
    public string? MaterialsId { get; set; }

    /// <summary> 
    /// 产品Id
    /// </summary>
    public string? ProductBillId { get; set; }

    /// <summary> 
    /// 使用比例
    /// </summary>
    public int? UsageRatio { get; set; }


    public virtual ProductPlanning_Material? Materials { get; set; }

    [JsonIgnore]
    public virtual ProductPlanning_ProductBill? ProductBill { get; set; }
}
